import { Injectable } from '@angular/core';
import { HEROES} from './mock-heroes'
import { Hero } from './hero';

@Injectable()
export class HeroService {

  constructor() { }

  getHeroes(): Hero[] {
    return HEROES;
  } // stub

  getHeroesAsync(): Promise<Hero[]> {
    return Promise.resolve(HEROES);
  } // stub
}
